<?php
//Smarty
define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/libs/');
require_once(SMARTY_DIR.'Smarty.class.php');

$smarty=new Smarty();

//dev mode
//$smarty->compile_check = true;
$smarty->caching=0;
$smarty->clear_all_cache();
$smarty->clear_compiled_tpl();
$smarty->compile_check=false;
$smarty->error_reporting=E_ALL;
//$smarty->debugging=true;
//$smarty->debug_tpl=true;
$smarty->debugging_ctrl='URL'; //   ?SMARTY_DEBUG

$smarty->security=true;


$smarty->template_dir='templates';
$smarty->compile_dir='templates_c';
$smarty->config_dir='configs';
$smarty->cache_dir='cache';
// shows debug console only on localhost ie
// http://localhost/script.php?foo=bar&SMARTY_DEBUG
$smarty->debugging=false; // the default
$smarty->debugging_ctrl=($_SERVER['SERVER_NAME']=='localhost')?'URL':'NONE';
$smarty->caching=2;
$smarty->cache_modified_check=true;
$smarty->error_reporting=NULL;
$smarty->debugging=false;
$smarty->debugging_ctrl='NONE';
$smarty->security=true;

